package com.usian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Email 2781921355@qq.com
 * @Author 马忠豪
 * @Date 2023/8/7 11:43
 */
@Data
@TableName(value = "topic")
public class Topic {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String topicNo;
    private Integer typeId;
    private String tagId;
    private Integer userId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date createDate;
    private String topicCode;
    private String answer;
    private String analysis;
    private Integer sum;
    @TableField(exist = false)
    private String logo;
    @TableField(exist = false)
    private String logo2;
}
